<%@ page import="com.tentact.coolmeetingtest.vo.Dept" %>
<%@ page import="java.util.List" %><%--
  Created by IntelliJ IDEA.
  User: 40334
  Date: 2023/1/10
  Time: 21:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <link rel="stylesheet" href="styles/common.css"/>
    <title>Title</title>
</head>
<body>
<div class="page-content">
    <div class="content-nav">
        人员管理 > 员工注册
    </div>
    <form action="MainServlet">
        <input type="hidden" name="dest" value="emp.register">
        <fieldset>
            <legend>员工信息</legend>
            <table class="formtable" style="width:50%">
                <tr>
                    <td>姓名：</td>
                    <td>
                        <input type="text" id="employeename" name="emp_name"  maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>账户名：</td>
                    <td>
                        <input type="text" id="accountname" name="username" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>密码：</td>
                    <td>
                        <input type="password" id="password" name="pwd" maxlength="20" placeholder="请输入6位以上的密码"/>
                    </td>
                </tr>
                <tr>
                    <td>确认密码：</td>
                    <td>
                        <input type="password" id="confirm" name="confirm_pwd" maxlength="20"/>
                    </td>
                </tr>
                <tr>
                    <td>联系电话：</td>
                    <td>
                        <input type="text" id="phone" maxlength="20" name="tel"/>
                    </td>
                </tr>
                <tr>
                    <td>电子邮件：</td>
                    <td>
                        <input type="text" id="email" maxlength="20" name="email"/>
                    </td>
                </tr>
                <tr>
                    <td>部门</td>
                    <td>
                        <select name="deptno">
                            <%
                                for(Dept dept : (List<Dept>)request.getAttribute("depts")){
                            %>
                                <option value="<%=dept.getDeptno()%>">
                                    <%=dept.getDeptName()%>
                                </option>
                            <%}%>
                        </select>
                    </td>
                </tr>
                <tr>
                    <td colspan="6" class="command">
                        <input type="submit" class="clickbutton" value="注册"/>
                        <input type="reset" class="clickbutton" value="重置"/>
                    </td>
                </tr>
            </table>
        </fieldset>
    </form>
</div>
</div>
</body>
</html>
